(function(){
	var map ={
		"merchantOperServlet.do":{
			name:"商户操作员信息",
			srcs:[
				"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/merchantOperInfo.js",
				"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/plugs/fancybox/jquery.fancybox-1.3.4.pack.js",
			]
		},
		"CardHolderUserInfo":{
			name:"持卡人基本信息",
			srcs:[
				"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/cardHolderUserInfo.js",
				"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/plugs/fancybox/jquery.fancybox-1.3.4.pack.js",
			]
		},
		"CardHolderUserLinkIndex":{
			name:"持卡用户关联卡信息",
			srcs:[
				"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/cardHolderUserLinkIndex.js",
				"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/plugs/fancybox/jquery.fancybox-1.3.4.pack.js",
			]
		},
		"test.html":{name:"测试页面"}
	};
	
	
	
	
	var curpageData=null;
	
	for(var key in map){
		var value = map[key];
		if(document.location.href.indexOf(key)!=-1){
			curpageData = value;
		}
	}
	
	//alert(curpageData);
	if(curpageData && curpageData.srcs)
	initLoad();
	
	//private
	function initLoad(){
		curpageData.srcs = typeof(curpageData.srcs) == "string"?[curpageData.srcs]:curpageData.srcs;
		curpageData.srcs.push("http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/common.js");
		require(curpageData.srcs,function(){
			$(window).trigger("outjsLoaded");
			window.hasOutjsLoaded=true;
		});
		$.loadcss([
			"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/css/c.css",
			"http://192.168.1.150/PCPS_online/SelfServiceWeb/WebRoot/js/plugs/fancybox/jquery.fancybox-1.3.4.css"
		]);
	}
})();


